#!/usr/bin/env python3
#coding=utf-8

import fileinput

# \033[2J\033[0;0H     // 2J = clear screen  [0;0H = set cursor at (0,0)
TEMPLATE = '''
\033[2J\033[0;0H
      AAAAAAAAA 
    FF        BB
    FF        BB
    FF        BB
    FF        BB 
    GGGGGGGGGGG 
   EE        CC
   EE        CC
   EE        CC
   EE        CC
    DDDDDDDDDD 
'''

BLOCK = {
    0: '\033[37m░\033[0m',      # 37m = white
    1: '\033[32m█\033[0m',      # 32m = green
}

VARS = 'ABCDEFG'

for v in VARS:
    globals()[v] = 0
stdin = fileinput.input()

while True:
    exec(stdin.readline())
    pic = TEMPLATE
    for v in VARS:
        pic = pic.replace(v, BLOCK[globals()[v]])

    print(pic)
